package com.crm.customers.service;

import java.util.Map;

import com.crm.customers.model.Contract;


public interface ContractPerformanceService {

	/**
	 * 添加业绩记录
	 * @param conid 合同id
	 * */
	public void insertContractPerformance(Long conid,String arrivaltime);
	
	/**
	 * 修改合同后添加业绩
	 * */
	public void addContractPerformance(String arrivaltime,Contract c);
	
	/**
	 * 检查是否有业绩记录
	 * */
	public int checkPerformanceExist(Long conid);
	/**
	 * 根据UID查出每个月的业绩
	 * @param uid
	 * @return
	 */
	public Map<String,Object> getPerFormanceByUid(Long uid);
	/**
	 * 删除业绩
	 * @param conid
	 * @return
	 */
	public int deleteContractPerformance(Long conid);
}
